﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;
namespace Thaire.Investment.Repository.Mapping
{

    class CompanyMap : ClassMap<Company>
    {

        public CompanyMap()
        {

            Table("COMPANY");
            Id(x => x.CompanyId, "COMPANY_ID").GeneratedBy.Native();

            Map(x => x.CompanyNameEn, "COMPANY_NAME_EN");
            Map(x => x.CompanyNameTh, "COMPANY_NAME_TH");
            Map(x => x.CompanyAddress, "COMPANY_ADDRESS");
            Map(x => x.CompanyContact, "COMPANY_CONTACT");
            Map(x => x.CompanyEmail, "COMPANY_EMAIL");
            Map(x => x.CompanyTel, "COMPANY_TEL");
            Map(x => x.CompanyFax, "COMPANY_FAX");
            Map(x => x.CompanyCompanyLevel, "COMPANY_COMPANY_LEVEL");
            Map(x => x.CompanyParentId, "COMPANY_PARENT_ID");
            Map(x => x.FixincomeSecuritiesAccount, "FIXINCOMESECURITIES_ACCOUNT");
            Map(x => x.EquitySecuritiesAccount, "EQUITYSECURITIES_ACCOUNT");
            Map(x => x.UnitTrustAccount, "UNIT_TRUST_ACCOUNT");
            Map(x => x.DepositNotedAccount, "DEPOSIT_NOTED_ACCOUNT");

        }


    }
}
